package nci60.data.protein

/**
 * This domain class describes the organism the dataset is originated from. 
 * The current database is optimized to only one organism, but can easily extended to multiple ones.
 *
 * @autor <a href="mailto:Florian.J.Auer@googlemail.com">Florian J. Auer</a>
*/
class SourceOrganism {

    /**
    * short name of the organism, e.g. "human"
    */
    String name
    
    /**
    * full name of the organism, e.g. "Homo Sapiens"
    */
    String fullName

    /**
     * GRAILS <a href="http://grails.org/doc/latest/guide/single.html#constraints" target="_blank">Declaring Constraints</a>
     * <p />
     * Constraints in Grails are a way to declaratively specify validation rules for generating objects in GORM.
     */	
    static constraints = {
    }
    
    /**
     * Just prints the object to the console
     * remains for testing
     */
    void print() {
        println 'id: '+id
        println 'short name: '+name
        println 'full name: '+fullName
    }
}
